package war.telas;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

public class PainelSplash extends JPanel{

	private Image imagem;
	
	public PainelSplash(String splash) {
		
		setSize(644,372);
		
		ImageIcon img = new ImageIcon(splash);
		
		imagem = img.getImage();
		
		
	}
	
	public void paint(Graphics g) {
		
		Graphics2D gra = (Graphics2D) g;
		
		gra.drawImage(imagem,0,0,this);
	}

	
}
